|
Umístění Menu |
---|
Kreslení -> Utility -> Výběr roviny |
Pracovní stoly |
Kreslení, Architektura |
Výchozí zástupce |
Nikdo |
Představen ve verzi |
- |
Viz také |
Nikdo |
Modul kreslení má pracovní rovinu, která umožňuje specifikovat uživatelskou rovinu ve 3D, na které se bude realizovat následujíci kreslicí příkaz. Pro definování pracovní roviny existuje několik metod:
introduced in version 1.0: For each 3D view a separate working plane is stored.
The button in the Draft Tray changes depending on the current working plane. introduced in version 1.0: If the working plane is not set to Auto an asterisk (*) is appended to the button label if the origin of the working plane does not match the global origin.
Shapes created on different working planes
See also: Preferences Editor and Draft Preferences.
Objekt pracovní roviny může být snadno vyvořen a manipulován ve skriptech a makrech. Můžete vytvářet vlastní a používat je nezávisle na aktuální pracovní ploše Kreslení.
The WorkingPlane module offers two classes to create working plane objects: the PlaneBase
class and the PlaneGui
class. The second class inherits from the first. Objects of the PlaneGui
class interact with the GUI (the Draft Tray button), the 3D view and the grid. PlaneBase
objects do not.
Use the get_working_plane()
method of the WorkingPlane module to get an instance of the PlaneGui
class linked to the current 3D view. The method either returns the existing working plane linked to the view or creates a new working plane if required.
import FreeCAD as App
import WorkingPlane
wp = WorkingPlane.get_working_plane()
origin = App.Vector(0, 0, 0)
normal = App.Vector(1, 1, 1).normalize()
offset = 17
wp.align_to_point_and_axis(origin, normal, offset)
point = App.Vector(10, 15, 2)
projection = wp.project_point(point)
print(projection)
The PlaneBase
class can be used to create working planes independent of the GUI:
import WorkingPlane
wp = WorkingPlane.PlaneBase()